home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frm3_5_3
- Caption = "3-5-3"
- ClientHeight = 1695
- ClientLeft = 1095
- ClientTop = 1485
- ClientWidth = 2790
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 1695
- ScaleWidth = 2790
- Begin VB.CommandButton cmdCompute
- Caption = "Compute Percentages"
- Default = -1 'True
- Height = 495
- Left = 360
- TabIndex = 1
- Top = 1080
- Width = 2055
- End
- Begin VB.PictureBox picPercent
- Height = 855
- Left = 120
- ScaleHeight = 795
- ScaleWidth = 2475
- TabIndex = 0
- Top = 120
- Width = 2535
- End
- Attribute VB_Name = "frm3_5_3"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdCompute_Click()
- Dim total As Single, category As String, amount As Single
- Open App.Path & "\COSTS.TXT" For Input As #1
- picPercent.Cls
- total = 0
- Input #1, category, amount
- total = total + amount
- Input #1, category, amount
- total = total + amount
- Input #1, category, amount
- total = total + amount
- Input #1, category, amount
- total = total + amount
- Close #1
- Open App.Path & "\COSTS.TXT" For Input As #1
- Input #1, category, amount
- picPercent.Print category; amount / total
- Input #1, category, amount
- picPercent.Print category; amount / total
- Input #1, category, amount
- picPercent.Print category; amount / total
- Input #1, category, amount
- picPercent.Print category; amount / total
- Close #1
- End Sub
-